﻿#region [ICAPService Using Statements]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using System.IO;
#endregion

namespace AccelerometerServer.Interfaces
{
    /// <summary>
    /// This interface specifies the methods to enable a Silverlight control to access a service in another domain.
    /// </summary>
    [ServiceContract]
    public interface ICAPService
    {
        /// <summary>
        /// Retrieves the access policy file
        /// </summary>
        /// <returns>The access policy</returns>
        [OperationContract, WebGet(UriTemplate = "/clientaccesspolicy.xml")]
        Stream GetClientAccessPolicy();
    }
}
